package com.sun.jdk.stream;

import java.util.stream.Stream;

/**
 * Stream接口的常用方法
 */
public class StreamTest10Map {
    public static void main(String[] args) {
 
        // 6. map方法 (实现数据类型的变换)
        Stream.of("1","2","3","4","5")
                .map(Integer::parseInt)
                .forEach(System.out::println);
    }
}
